package com.rmb.controller;

import com.rmb.annotation.SystemLog;
import com.rmb.entity.EtlTaskLogicFieldInfo;
import com.rmb.enums.LogType;
import com.rmb.service.EtlTaskLogicFieldInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 任务处理过程表(EtlTaskLogicFieldInfo)表控制层
 *
 * @author makejava
 * @since 2021-01-09 14:24:44
 */
@RestController
@RequestMapping("etlTaskLogicFieldInfo")
public class EtlTaskLogicFieldInfoController {
    /**
     * 服务对象
     */
    @Autowired
    private EtlTaskLogicFieldInfoService etlTaskLogicFieldInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    @SystemLog(description = "通过主键查询单条数据",type = LogType.SELETE)
    public EtlTaskLogicFieldInfo selectOne(Long id) {
        return this.etlTaskLogicFieldInfoService.queryById(id);
    }

}